Skip to content

Gets metadata record for the given id

Request

Gets the latest version of File metadata record identified by the given id.

Required roles: 'service.file.viewers'. Users added to groups 'users.datalake.viewers', 'users.datalake.editors', 'users.datalake.admins', 'users.datalake.ops' would be added to group 'service.file.viewers' by default.

Security
bearer
Path
Idstringrequired

File metadata record Id.

Headers
data-partition-idstringrequired

desired data partition id.

Example:slb-osdu-prod-des-prod-testing
curl -i -X GET \
  'https://as5.api.enterprisedata.slb.com/api/file/v2/files/{Id}/metadata' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'data-partition-id: slb-osdu-prod-des-prod-testing'

Responses

A successful response

Bodyapplication/json
idstringread-only

Unique identifier generated by the system for the file metadata record.

kindstring

Kind of data being ingested. Must follow the naming convention:{schema-authority}:wks:dataset--File.Generic:{version}.

Example:"osdu:wks:dataset--File.Generic:1.0.0"

Legal meta data like legal tags, relevant other countries, legal status.

dataobject(File Metadata)

The file data container containing all necessary details of the file record

ancestryobject(Parent List)
tagsobject

Data flow job id to track data flow.

Example:
{ "dataflowId": "dataflowId" }
versioninteger, (int64)(Version Number)

The version number of this OSDU resource; set by the framework.

Example:1831253916104085
Response
{ "id": "string", "kind": "osdu:wks:dataset--File.Generic:1.0.0", "acl": { "viewers": [ … ], "owners": [ … ] }, "legal": { "legaltags": [ … ], "otherRelevantDataCountries": [ … ], "status": "compliant" }, "data": { "ExtensionProperties": { … }, "Name": "string", "Description": "string", "TotalSize": "string", "EncodingFormatTypeID": "string", "SchemaFormatTypeID": "string", "Endian": "BIG", "DatasetProperties": { … }, "Checksum": "string", "ResourceHomeRegionID": "string", "ResourceHostRegionIDs": [ … ], "ResourceCurationStatus": "string", "ResourceLifecycleStatus": "string", "ResourceSecurityClassification": "string", "Source": "string", "ExistenceKind": "string" }, "ancestry": { "parents": [ … ] }, "meta": [ { … } ], "tags": { "dataflowId": "dataflowId" }, "version": 1831253916104085 }